package com.micro.util;

import com.micro.model.Subject;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import org.jsoup.Connection;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;

public class JsoupUtil {

    private static String ENCODE = "utf-8";


    /**
     * 测试
     * @param args
     */
    public static void main(String[] args) {
        String url = "http://www.biqugeg.com";

        //String regex = "(.*)(<a href=\"(.*?)\">)(.*?)(</a>)(.*)";

        Document doc;
        try {
            //获取文档
            doc = Jsoup.connect(url).get();

        } catch (Exception e) {

        }
    }
}